import request from "@/utils/axios";
import {
    URL_API
  } from '@/utils/mUtils'
  const base = URL_API()

  //商服大宽表列表API
export function waybillFullLinkList(params) {
    return request({
        url: `${base}/api/waybillFullLink/list`,
        method: "post",
        data: params,
    });
}
// 组织下拉列表
export function branchList(params = {}) {
    return request({
      url: `${base}/api/company/organizational/branch/website_list`,
      method: "post",
      data: params,
    });
  }

//商服大宽表 导出  
export function waybillFullLinkExport(params) {
  return request({
      url: `${base}/api/waybillFullLink/export`,
      method: "post",
      data: params,
  });
}

//所属客户Api
export function customerBox(params) {
  return request({
      url: `${base}/api/company/customer/box`,
      method: "post",
      data: params,
  });
}
// 收入成本汇总
export function incomeCost(params) {
  return request({
      url: `${base}/api/report_form/revenue_cost/summary`,
      method: "post",
      data: params,
  });
}
// 收入成本汇总导出
export function summaryExport(params) {
  return request({
      url: `${base}/api/report_form/revenue_cost/summary/export`,
      method: "post",
      data: params,
  });
}
// 收入成本明细
export function revenueCost(params) {
  return request({
      url: `${base}/api/report_form/revenue_cost/detail`,
      method: "post",
      data: params,
  });
}
// 收入成本明细导入
export function revenueCostDetail(params) {
  return request({
      url: `${base}/api/report_form/revenue_cost/detail/export`,
      method: "post",
      data: params,
  });
}
// 温度计管理列表
export function thermometermonitor(params) {
  return request({
      url: `${base}/api/thermometer/monitor/list`,
      method: "post",
      data: params,
  });
}
// 温度计异常报表
export function thermometermonitorreport(params) {
  return request({
      url: `${base}/api/thermometer/monitor/report/list`,
      method: "post",
      data: params,
  });
}
// 温度计异常报表
export function thermometermonitorexport(params) {
  return request({
      url: `${base}/api/thermometer/monitor/export`,
      method: "post",
      data: params,
  });
}
// 温度计异常报表
export function overtimerecordsList(params) {
  return request({
      url: `${base}/api/overtime/records/list`,
      method: "post",
      data: params,
  });
}
// 温度计异常报表
export function overtimerecordsshow(params) {
  return request({
      url: `${base}/api/overtime/records/show`,
      method: "post",
      data: params,
  });
}
// 温度计异常报表
export function overtimesettingList(params) {
  return request({
      url: `${base}/api/overtime/setting/list`,
      method: "post",
      data: params,
  });
}
// 温度计新增异常
export function overtimesettingcreate(params) {
  return request({
      url: `${base}/api/overtime/setting/create`,
      method: "post",
      data: params,
  });
}
// 温度计新增详情
export function overtimesettingdetail(params) {
  return request({
      url: `${base}/api/overtime/setting/detail`,
      method: "post",
      data: params,
  });
}
// 温度计新增编辑
export function overtimesettingupdate(params) {
  return request({
      url: `${base}/api/overtime/setting/update`,
      method: "post",
      data: params,
  });
}
// 温度计新增编辑
export function overtimesettingdelete(params) {
  return request({
      url: `${base}/api/overtime/setting/delete`,
      method: "post",
      data: params,
  });
}
// 导出
export function overtimerecordsexport(params) {
  return request({
      url: `${base}/api/overtime/records/export`,
      method: "post",
      data: params,
  });
}

//  导入异常接口
export function thermometermonitorabnormalimport(params) {
  return request({
      url: `${base}/api/thermometer/monitor/abnormal/import`,
      method: "post",
      data: params,
  });
}
//  导入异常接口
export function thermometermonitorabnormaldeal(params) {
  return request({
      url: `${base}/api/thermometer/monitor/abnormal/deal`,
      method: "post",
      data: params,
  });
}
//  导入异常接口
// export function overtimerecordsupdate(params) {
//   return request({
//       url: `${base}/api/overtime/records/update`,  });
//     }
//  客户默认提醒内容列表
export function quality_operation_reminder_list(params) {
  return request({
      url: `${base}/api/quality_operation_reminder/list`,
      method: "post",
      data: params,
  });
}
//  客户默认提醒创建
export function quality_operation_reminder_create(params) {
  return request({
      url: `${base}/api/quality_operation_reminder/create`,
      method: "post",
      data: params,
  });
}
//  客户默认提醒详情
export function quality_operation_reminder_detail(params) {
  return request({
      url: `${base}/api/quality_operation_reminder/detail`,
      method: "post",
      data: params,
  });
}
//  客户默认提醒编辑
export function quality_operation_reminder_update(params) {
  return request({
      url: `${base}/api/quality_operation_reminder/update`,
      method: "post",
      data: params,
  });
}
//  客户默认提醒编辑
export function quality_operation_reminder_delete(params) {
  return request({
      url: `${base}/api/quality_operation_reminder/delete`,
      method: "post",
      data: params,
  });
}
//  客户默认提醒检测
export function quality_operation_reminder_operation_cautions(params) {
  return request({
      url: `${base}/api/quality_operation_reminder/operation_cautions`,  method: "post",
      data: params,
  });
}
//  导入异常接口
export function overtimerecordsupdate(params) {
  return request({
      url: `${base}/api/overtime/records/update`,
      method: "post",
      data: params,
  });
}
//  各大区成本异常统计
export function quality_operation_reminder_loss_statistics(params) {
  return request({
      url: `${base}/api/quality_operation_reminder/loss_statistics`,
      method: "post",
      data: params,
    });
}
// 成本异常运单
export function quality_operation_reminder_cost_abnormal_list(params) {
  return request({
      url: `${base}/api/quality_operation_reminder/cost_abnormal_list`,
      method: "post",
      data: params,
    });
}
// 商服大宽表导出列表
export function export_record_list(params) {
  return request({
      url: `${base}/api/export/record/list`,
      method: "post",
      data: params,
    });
}
// 商服大宽表导出列表
export function quality_operation_reminder_export(params) {
  return request({
      url: `${base}/api/quality_operation_reminder/export`,
      method: "post",
      data: params,
    });
}